﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using HNCDataSetTableAdapters;

public partial class UserControl_content_album : System.Web.UI.UserControl
{
    CategoryTableAdapter cate = new CategoryTableAdapter();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DataView dv = (DataView)cate.GetCateByParentID(8).DefaultView;
            CollectionPager1.PageSize = 18;
            CollectionPager1.DataSource = dv;
            CollectionPager1.BindToControl = rptAlbum;
            rptAlbum.DataSource = CollectionPager1.DataSourcePaged;
            rptAlbum.DataBind();
        }
    }
}